package net.toocruel.iqismart.service.dto;

import net.toocruel.iqismart.entity.rbac.User;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * @Description
 * @Auther sty
 * @createTime 2018/5/16 上午12:55
 */
public class GoodsExchangeDTO {
    private net.toocruel.iqismart.entity.rbac.User user;
    private Long goodId;
    @Length(min = 2,max = 10)
    private String realName;
    @Length(min = 8,max = 11)
    private String phone;
    @Email
    @NotEmpty
    private String email;
    private String comment;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Long getGoodId() {
        return goodId;
    }

    public void setGoodId(Long goodId) {
        this.goodId = goodId;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }
}
